-- GENERATED SPELL FOR [Forest Frog] --


function spell0_24396(pUnit, Event) --4Push Mojo,n/a--
pUnit:FullCastSpellOnTarget(43923,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24396', 645, 1)
end

function spell1_24396(pUnit, Event) --@Stealth,Self--
pUnit:FullCastSpellOnTarget(34189,pUnit)
pUnit:RegisterEvent('Sorts_24396', 592, 1)
end

function Sorts_24396(pUnit, Event)
local choix_sorts_24396 = math.random(0, 1)
if choix_sorts_24396 == 0 then
pUnit:RegisterEvent('spell0_24396', 1, 1)
end
if choix_sorts_24396 == 1 then
pUnit:RegisterEvent('spell1_24396', 1, 1)
end
end

function mob24396_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24396', math.random(1500, 3000), 1)
end

function mob24396_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24396_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24396_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24396, 1, 'mob24396_Action')
RegisterUnitEvent(24396, 2, 'mob24396_Leave')
RegisterUnitEvent(24396, 3, 'mob24396_Kill')
RegisterUnitEvent(24396, 4, 'mob24396_Die')
